<template>
    <div class="content">
        <el-button @click="dialogVisible = true">带你飞飞</el-button>
        <!-- 弹出层 -->
        <el-dialog
            title="基本信息"
            :visible.sync="dialogVisible"
            width="80%"
            >
            <el-form ref="form" label-position="left" :model="formInline" label-width="100px">
                <el-form-item label="名称">
                    <el-input size="mini" style="width:50%" v-model="formInline.name"></el-input>
                </el-form-item>
            </el-form>    
            <express-template :freight_template_id="freight_template_id" ref="expressNode"></express-template>   
            <span slot="footer" class="dialog-footer">
                <el-button size="mini" @click="dialogVisible = false">关闭</el-button>
                <el-button size="mini" type="primary" @click="onSubmit">保存</el-button>
            </span>
        </el-dialog>
    </div>
</template>

<script>
import ExpressTemplate from "@/components/ExpressTemplate"
export default {
    name:"express_index",
    components:{ ExpressTemplate },
    data() {
        return {
              freight_template_id:false,
              dialogVisible:false,
              formInline:{
                  name:"阿事实上", 
              }
        }
    },
    methods:{
        // 保存操作
        onSubmit(){
            console.log('sss')
        }
    }
}
</script>